package mk.com.ldm.corepoint.implementation.shared;

import java.io.Serializable;

import mk.com.ldm.corepoint.implementation.shared.Foreign;

@SuppressWarnings("serial")
public class Foreign implements Serializable{
	private Boolean isForeign = false;
	private String tableName;
	private String tableAlias = "";
	private String idColumnName;
	private String columnName;
	public Foreign foreign;
	
	public Foreign(){};
	
	public Foreign(String tableName, String tableAlias, String columnName, String idColumnName, Boolean isForeign){
		this.tableName = tableName;
		this.tableAlias = tableAlias;
		this.columnName = columnName;
		this.isForeign = isForeign;
		this.idColumnName = idColumnName;
	}
	
	public String getTableName(){
		return tableName;
	}
	
	public String getColumnName(){
		return columnName;
	}
	
	public Boolean getIsForeign(){
		return isForeign;
	}
	
	public String getIdColumnName(){
		return idColumnName;
	}
	
	public void setTableName(String tableName){
		this.tableName = tableName;
	}
	
	public void setColumnName(String columnName){
		this.columnName = columnName;
	}
	
	public void setIsForeign(Boolean isForeign){
		this.isForeign = isForeign;
	}
	
	public void setIdColumnName(String idColumnName){
		this.idColumnName = idColumnName;
	}

	public String getTableAlias() {
		return tableAlias;
	}

	public void setTableAlias(String tableAlias) {
		this.tableAlias = tableAlias;
	}
	
}